﻿// See https://aka.ms/new-console-template for more information

using Grpc.Net.Client;
using GrpcService;

string url = "https://localhost:7097";
using (var channel = GrpcChannel.ForAddress(url))
{
    var client = new Order.OrderClient(channel);
    var reply = await client.CreateOrderAsync(new CreateRequest
    {
        OrderName = "Order 1",
        OrderNo = "1",
        Price = 100
    });
    Console.WriteLine($"grpc客户端调用结果：{reply.Message},{reply.IsSuccess}");
    Console.Read();
}